<template>
    <div class="message">
        <div class="messageItems">
            <div class="messageItemsIcon"><i class="iconfont icon-shouye"></i></div>
            <div class="personMessage">
                <div class="personMessageTitle">{{account.realName}}（{{account.cardno}}）</div>
                <div class="personMessageData">{{account.idCard}}</div>
            </div>
            
        </div>
        <div class="messageItems" style="background:#ffa600;">
            <div class="messageItemsIcon"><i class="iconfont icon-qian"></i></div>
            <div class="personMessage">
                <div class="personMessageTitle">卡内余额：</div>
                <div class="personMessageData">￥{{account.blanefee}}</div>
            </div>
        </div>
    </div>
</template>
<script>
import { getStore } from '@/util/store'
export default {
    name: 'Message',
    data () {
        return {
            account: {},
        }
    },
    mounted() {
        this.account=getStore({name:'account'});
    },

}
</script>
<style>
.message {
    margin: 20px 0;
    display: flex;
    color: #ffffff;
}
.messageItems {
    display: flex;
    width: 45%;
    background: #36c3ca;
    margin: 0 2.5%;
    text-align: center;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    padding: 34px 0;
}
.iconfont {
    font-size: 60px;
}
.personMessage {
    margin-left: 10px;
    margin-top: -20px;
}
.personMessageTitle {
    font-size: 24px;
    line-height: 48px;
    margin-left: 20px;
}
.personMessageData {
    margin-top: 10px;
    font-size: 18px;
    line-height: 36pxl
}
</style>
